using System;
using System.Drawing;

namespace Mazeball
{
    public static class ColorManager
    {
        public enum Colors
        {
            Red,
            Green,
            Blue,
            Black,
            Orange,
            Magenta
        } ;

        static ColorManager()
        {
            _brushes[0] = new SolidBrush(Color.Red);
            _brushes[1] = new SolidBrush(Color.Green);
            _brushes[2] = new SolidBrush(Color.Blue);
            _brushes[3] = new SolidBrush(Color.Black);
            _brushes[4] = new SolidBrush(Color.Orange);
            _brushes[5] = new SolidBrush(Color.Magenta);
        }

        private static readonly Brush[] _brushes = new Brush[10];
        public static Pen NormalBallPen = new Pen(Color.Black);
        public static Pen SelectedBallPen = new Pen(Color.Black, 3);

        public static Brush[] Brushes
        {
            get { return _brushes; }
        }

        public static Brush GetRandomBrush()
        {
            var random = new Random();
            var i = random.Next(0, 5);
            return _brushes[i];
        }
    }
}